Integrand size = 11, antiderivative size = 54 \[ \int \left (a+\frac {b}{x}\right )^{3/2} \, dx=-3 b \sqrt {a+\frac {b}{x}}+\left (a+\frac {b}{x}\right )^{3/2} x+3 \sqrt {a} b \text {arctanh}\left (\frac {\sqrt {a+\frac {b}{x}}}{\sqrt {a}}\right ) \]
[Out]
Time = 0.02 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.455, Rules used = {248, 43, 52, 65, 214} \[ \int \left (a+\frac {b}{x}\right )^{3/2} \, dx=3 \sqrt {a} b \text {arctanh}\left (\frac {\sqrt {a+\frac {b}{x}}}{\sqrt {a}}\right )+x \left (a+\frac {b}{x}\right )^{3/2}-3 b \sqrt {a+\frac {b}{x}} \]
[In]
[Out]
Rule 43
Rule 52
Rule 65
Rule 214
Rule 248
Rubi steps \begin{align*} \text {integral}& = -\text {Subst}\left (\int \frac {(a+b x)^{3/2}}{x^2} \, dx,x,\frac {1}{x}\right ) \\ & = \left (a+\frac {b}{x}\right )^{3/2} x-\frac {1}{2} (3 b) \text {Subst}\left (\int \frac {\sqrt {a+b x}}{x} \, dx,x,\frac {1}{x}\right ) \\ & = -3 b \sqrt {a+\frac {b}{x}}+\left (a+\frac {b}{x}\right )^{3/2} x-\frac {1}{2} (3 a b) \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,\frac {1}{x}\right ) \\ & = -3 b \sqrt {a+\frac {b}{x}}+\left (a+\frac {b}{x}\right )^{3/2} x-(3 a) \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+\frac {b}{x}}\right ) \\ & = -3 b \sqrt {a+\frac {b}{x}}+\left (a+\frac {b}{x}\right )^{3/2} x+3 \sqrt {a} b \tanh ^{-1}\left (\frac {\sqrt {a+\frac {b}{x}}}{\sqrt {a}}\right ) \\ \end{align*}
Time = 0.07 (sec) , antiderivative size = 46, normalized size of antiderivative = 0.85 \[ \int \left (a+\frac {b}{x}\right )^{3/2} \, dx=\sqrt {a+\frac {b}{x}} (-2 b+a x)+3 \sqrt {a} b \text {arctanh}\left (\frac {\sqrt {a+\frac {b}{x}}}{\sqrt {a}}\right ) \]
[In]
[Out]
Time = 0.04 (sec) , antiderivative size = 78, normalized size of antiderivative = 1.44
method | result | size |
risch | \(\left (a x -2 b \right ) \sqrt {\frac {a x +b}{x}}+\frac {3 \sqrt {a}\, b \ln \left (\frac {\frac {b}{2}+a x}{\sqrt {a}}+\sqrt {a \,x^{2}+b x}\right ) \sqrt {\frac {a x +b}{x}}\, \sqrt {x \left (a x +b \right )}}{2 \left (a x +b \right )}\) | \(78\) |
default | \(-\frac {\sqrt {\frac {a x +b}{x}}\, \left (-6 \sqrt {a \,x^{2}+b x}\, a^{\frac {3}{2}} x^{2}-3 \ln \left (\frac {2 \sqrt {a \,x^{2}+b x}\, \sqrt {a}+2 a x +b}{2 \sqrt {a}}\right ) a b \,x^{2}+4 \left (a \,x^{2}+b x \right )^{\frac {3}{2}} \sqrt {a}\right )}{2 x \sqrt {x \left (a x +b \right )}\, \sqrt {a}}\) | \(100\) |
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 100, normalized size of antiderivative = 1.85 \[ \int \left (a+\frac {b}{x}\right )^{3/2} \, dx=\left [\frac {3}{2} \, \sqrt {a} b \log \left (2 \, a x + 2 \, \sqrt {a} x \sqrt {\frac {a x + b}{x}} + b\right ) + {\left (a x - 2 \, b\right )} \sqrt {\frac {a x + b}{x}}, -3 \, \sqrt {-a} b \arctan \left (\frac {\sqrt {-a} \sqrt {\frac {a x + b}{x}}}{a}\right ) + {\left (a x - 2 \, b\right )} \sqrt {\frac {a x + b}{x}}\right ] \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 92 vs. \(2 (44) = 88\).
Time = 1.37 (sec) , antiderivative size = 92, normalized size of antiderivative = 1.70 \[ \int \left (a+\frac {b}{x}\right )^{3/2} \, dx=3 \sqrt {a} b \operatorname {asinh}{\left (\frac {\sqrt {a} \sqrt {x}}{\sqrt {b}} \right )} + \frac {a^{2} x^{\frac {3}{2}}}{\sqrt {b} \sqrt {\frac {a x}{b} + 1}} - \frac {a \sqrt {b} \sqrt {x}}{\sqrt {\frac {a x}{b} + 1}} - \frac {2 b^{\frac {3}{2}}}{\sqrt {x} \sqrt {\frac {a x}{b} + 1}} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 63, normalized size of antiderivative = 1.17 \[ \int \left (a+\frac {b}{x}\right )^{3/2} \, dx=\sqrt {a + \frac {b}{x}} a x - \frac {3}{2} \, \sqrt {a} b \log \left (\frac {\sqrt {a + \frac {b}{x}} - \sqrt {a}}{\sqrt {a + \frac {b}{x}} + \sqrt {a}}\right ) - 2 \, \sqrt {a + \frac {b}{x}} b \]
[In]
[Out]
Exception generated. \[ \int \left (a+\frac {b}{x}\right )^{3/2} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Time = 5.95 (sec) , antiderivative size = 34, normalized size of antiderivative = 0.63 \[ \int \left (a+\frac {b}{x}\right )^{3/2} \, dx=-\frac {2\,x\,{\left (a+\frac {b}{x}\right )}^{3/2}\,{{}}_2{\mathrm {F}}_1\left (-\frac {3}{2},-\frac {1}{2};\ \frac {1}{2};\ -\frac {a\,x}{b}\right )}{{\left (\frac {a\,x}{b}+1\right )}^{3/2}} \]
[In]
[Out]